Preventing Self-Intersection |
Advantages And LimitationsOverviewWhile the Prevent Self-Intersections parameter can be used in many situations to prevent a flag from penetrating its own surface, it has its limitations. This section discusses when this parameter works best. It also describes this parameter's shortcomings. How Prevention WorksAt each frame, the "Prevention Algorithm" puts a force field around the points in the flag. If a flag point tries to enter the force field, it is pushed away. NOTE: The Prevention Algorithm does not occur during the Pre-Roll process. Therefore, if a flag is self-intersecting at the first frame after pre-rolling, the Prevention Algorithm may not be able to undo the intersection for that frame. It may also have trouble clearing up the intersections in subsequent frames. AdvantagesThere are several scenarios where the Prevent Self-Intersections parameter works well. These mostly involve times when the flag briefly overlaps itself in an animation. Turning on this parameter can usually get rid of the self-intersection without greatly changing the animation itself. The Prevention Algorithm has many advantages.
In many situations, you won't have to use the Prevent Self-Intersections parameter. A properly undulating flag usually will not intersect itself. But for those times when your animation just won't look right because a flag is intersecting itself, the Prevent Self-Intersections parameter can be used to make your animation look more realistic. LimitationsWhile the Prevent Self-Intersections parameter can be used to great effect in many situations, there are scenarios that it may not handle well, such as:
An Ounce Of Prevention Is Worth A Pound Of CureThe best way for you to avoid creating a flag with self-intersections is to use parameters that won't cause self-intersection in the first place. If you've tried the Prevent Self-Intersections parameter and it hasn't worked for you situation, you may want to try one of the following solutions. Each of the items below can be used to help you not have self-intersections in the first place.
The next chapter, Working With Multiple Flags, will discuss ways to make your flags unique. It will also demonstrate how to quickly reuse the animation from one flag to create many animations with different flag images.
|